import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

import api from './api';
import filter from './filters';
import constants from "_u/constants";

import './plugins/element-ui';
import './plugins/tippy';
import './plugins/aliplayer';

import './styles/global.scss';

Vue.prototype.$api = api;
Vue.prototype.$filter = filter;

if (window.localStorage.getItem(constants.ACCESS_TOKEN)) {
  // api.login()
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
